


//
//  UIButton+ex.swift
//  mywei
//
//  Created by myd on 15/12/21.
//  Copyright © 2015年 myd1. All rights reserved.
//

import UIKit

extension UIButton {
   
    convenience init(imagename : String , fontsize : CGFloat , title : String)
    {
   self.init()
     self.backgroundColor = UIColor(white: 0.95, alpha: 1)
        setImage(UIImage(named: imagename), forState: UIControlState.Normal)
        setTitle(title, forState: UIControlState.Normal)
        self.titleLabel?.textColor=UIColor.blackColor()
        self.titleLabel?.font = UIFont.systemFontOfSize(fontsize)
       
    }
}
